import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 300,
    searchLabelWidth: 120,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    editBtn: true,
    delBtn: true,
    column: [
      {
        label: '建筑物名称',
        prop: 'p1',
        search: true,
        overHidden: true,
      },
      {
        label: '功能用途',
        prop: 'p2',
        search: true,
        dicData: self.shipSTypeArr,
        filterable: true,
        search: true,
        type: 'select',
        props: {
          label: 'lable',
          value: 'value'
        },
        overHidden: true,
      },
      {
        label: '建设管理单位',
        prop: 'p3',
        search: true,
        overHidden: true,
      },
      {
        label: '联系方式',
        prop: 'p4',
        search: false,
        overHidden: true,
        type: 'select',

      },
      {
        label: '设计单位',
        prop: 'p5',
        overHidden: true
      },
      {
        label: '航评单位',
        prop: 'p6',
      },
      {
        label: '所在航道里程',
        prop: 'p7',
        hide: true
      },
      {
        label: '建筑物建成时间',
        prop: 'p8',
      },
      {
        label: '航评审定跨度布置方案',
        prop: 'p9',
        hide: true
      },
      {
        label: '航评审定通航净高标准',
        prop: 'p10',
        hide: true
      },
      {
        label: '设计跨度布置方案',
        prop: 'p11',
        hide: true

      },
      {
        label: '设计通航净高',
        prop: 'p12',
        hide: true

      },
      {
        label: '设计最高通航水位',
        prop: 'p13',
        hide: true
      },
      {
        label: '设计最低通航水位',
        prop: 'p14',
        hide: true
      },
      {
        label: '通航净空尺度测绘单位',
        prop: 'p15',
        hide: true
      },
      {
        label: '测绘单位资质情况',
        prop: 'p16',
        hide: true
      },
      {
        label: '测绘时间',
        prop: 'p17',

      },
      {
        label: '高程系统',
        prop: 'p18',
        hide: true

      },
      {
        label: '通航水域孔跨编号',
        prop: 'p19',
        hide: true

      },
      {
        label: '墩柱编号',
        prop: 'p20',
        hide: true

      },
      {
        label: '孔跨底缘高程',
        prop: 'p21',
        hide: true

      },
      {
        label: '实际通航净高',
        prop: 'p22',
      },
      {
        label: '实际通航净宽',
        prop: 'p23',
      },
    ]
  }
}
